<!--# layout("/common/layout.html",{"jsBase":"/js/admin/attractionsLine/"}){ -->

<form class="layui-form layui-form-pane" id="updateForm">
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">景点标题</label>
			<div class="layui-input-block">
				<input type="text" name="attractionTitle" autocomplete="off" disabled = "disabled"
					placeholder="请输入名称" class="layui-input" value="${travelAttractionsLine.attractionTitle}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">景点描述</label>
			<div class="layui-input-block">
				<input type="text" name="attractionDesc"   disabled = "disabled"
					placeholder="请输入" autocomplete="off" class="layui-input"
					value="${travelAttractionsLine.attractionDesc}">
			</div>
		</div>

	</div>
	<div class="layui-row">
		<div class="layui-col-xs4">
			<div class="layui-form-item">
				<label class="layui-form-label">导游编号</label>
				<div class="layui-input-inline">
					<input type="text" name="userId"  disabled = "disabled"
						   placeholder="请输入" autocomplete="off" class="layui-input"
						   value="${travelAttractionsLine.userId}">
				</div>
			</div>
		</div>
		<div class="layui-col-xs4">
			<div class="layui-form-item">
				<label class="layui-form-label">价格</label>
					<div class="layui-input-inline">
						<input type="text" name="amount" id="seq"   disabled = "disabled"
						placeholder="请输入" autocomplete="off" class="layui-input"
						value="${travelAttractionsLine.amount}">
					</div>
			</div>
		</div>
		<div class="layui-col-xs4">
			<div class="layui-form-item">
				<label class="layui-form-label">创建时间</label>
				<div class="layui-input-inline">
					<input type="text" name="createDt"   disabled = "disabled"
					placeholder="请输入" autocomplete="off" class="layui-input"
					value="${travelAttractionsLine.createDt}">
				</div>
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-col-xs4">
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label">备注说明</label>
					<div class="layui-input-inline">
						<input type="text" name="note"  disabled = "disabled"
							   placeholder="请输入" autocomplete="off" class="layui-input"
							   value="${travelAttractionsLine.note}">
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">审核意见</label>
			<div class="layui-input-block">
				<input type="text" name="reviewComments" autocomplete="off"
					   placeholder="请输入审核意见" class="layui-input" value="${travelAttractionsLine.reviewComments}">
			</div>
		</div>
	</div>
	<div class="layui-row">
		<div class="layui-form-item">
			<label class="layui-form-label">审核结果</label>
			<div class="layui-input-block">
				<input type="radio" name="state" value="0" title="通过" checked>
				<input type="radio" name="state" value="2" title="不通过">
			</div>
		</div>
	</div>
	<table id="attractionsTable" lay-filter="attractionsTable"></table>
	<layui:submitButtons id="auditTravelAttractionsLine" />
	<input type="hidden" id = "attractionId" name="attractionId" value=${travelAttractionsLine.attractionId} />

</form>

<!--#} -->
<script>
layui.use(['audit'], function(){
  var travelAttractionsLineAudit = layui.audit
	var attractionId = layui.$('#attractionId').val()
	travelAttractionsLineAudit.init(attractionId);
});

</script>
<script type="text/html" id="urlTemplet">
	{{# if(d.type == 1) { }}
	<img src="{{d.address}}" data-type="1" height="30" class="preview-all"/>
	{{# } else if (d.type == 2) { }}点击播放
	<video src={{d.address}} height="30" data-type="2" class="preview-all" ></video>
	{{# } else if (d.type == 3) { }}点击播放
	<video src={{d.address}} height="30" data-type="3" class="preview-all"  ></video>
	{{# } else { }}
	未知
	{{# } }}
</script>
<script type="text/html" id="typeTemplet">
	{{# if(d.type == 1) { }}
	<button class="layui-btn layui-btn-xs">图片</button>
	{{# } else if (d.type == 2) { }}
	<button class="layui-btn layui-btn-danger layui-btn-xs">音频</button>
	{{# } else if (d.type == 3) { }}
	<button class="layui-btn  layui-btn-xs">视频</button>
	{{# } else { }}
	<button class="layui-btn layui-btn-primary layui-btn-xs">未知</button>
	{{# } }}
</script>